import request from '@/utils/request'

// 查询查询关联家属列表
export function listPatientAndFamily(query) {
  return request({
    url: '/patientsystem/patientAndFamily/list',
    method: 'get',
    params: query
  })
}

// 查询查询关联家属详细
export function getPatientAndFamily(id) {
  return request({
    url: '/patientsystem/patientAndFamily/' + id,
    method: 'get'
  })
}

// 新增查询关联家属
export function addPatientAndFamily(data) {
  return request({
    url: '/patientsystem/patientAndFamily',
    method: 'post',
    data: data
  })
}

// 修改查询关联家属
export function updatePatientAndFamily(data) {
  return request({
    url: '/patientsystem/patientAndFamily',
    method: 'put',
    data: data
  })
}

// 删除查询关联家属
export function delPatientAndFamily(id) {
  return request({
    url: '/patientsystem/patientAndFamily/' + id,
    method: 'delete'
  })
}
